package gui.mainmenu;

import gui.listpatients.ListPatientsActivity;
import mchc.project.triageetagandroid.R;
import scanner.ScanActivity;
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.view.Window;

public class MainActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		this.requestWindowFeature(Window.FEATURE_NO_TITLE);
		
		setContentView(R.layout.activity_main);
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		getMenuInflater().inflate(R.menu.main, menu);
		return true;
	}

	/**
	 * Diese Methode wird aufgerufen, wenn der Scan-Button geklickt wird
	 * @param view
	 */
	public void scan(View view) {
		Intent intScan = new Intent(this, ScanActivity.class);
		startActivity(intScan);
	}

	/**
	 * Diese Methode wird aufgerufen, wenn die Patienten aufgelistet werden sollen
	 * @param view
	 */
	public void overview(View view) {
		Intent intListPatients = new Intent(this, ListPatientsActivity.class);
		startActivity(intListPatients);
	}

}
